package com.ruicar.afs.cloud.basic.common.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.basic.common.entity.BasicPenaltyInterest;
import com.ruicar.afs.cloud.basic.common.mapper.BasicPenaltyInterestMapper;
import com.ruicar.afs.cloud.basic.common.service.BasicPenaltyInterestService;
import org.springframework.stereotype.Service;

/**
 * @author: Lee
 * @date 2020-05-30 04:35:07 
 * @description 
 */
@Service
public class BasicPenaltyInterestServiceImpl extends ServiceImpl<BasicPenaltyInterestMapper, BasicPenaltyInterest> implements BasicPenaltyInterestService {

    @Override
    public BasicPenaltyInterest getPenaltyInterest(String contractNo, Integer termNo) {
        return this.getOne(Wrappers.<BasicPenaltyInterest>lambdaQuery().eq(BasicPenaltyInterest::getContractNo,contractNo).eq(BasicPenaltyInterest::getTermNo,termNo),false);
    }
}
